package com.hualan.mapper;

import com.hualan.domain.Heartknowledge;

import java.util.List;

/**
* @author 86175
* @description 针对表【heartknowledge(心理知识表，用于存储心理学相关知识信息)】的数据库操作Mapper
* @createDate 2024-09-06 10:22:08
* @Entity com.hl.domain.Heartknowledge
*/
public interface HeartknowledgeMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Heartknowledge record);

    int insertSelective(Heartknowledge record);

    Heartknowledge selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Heartknowledge record);

    int updateByPrimaryKey(Heartknowledge record);

    List<Heartknowledge> findAllHeartKnowledge();
    //查询所有的心理知识数据
    List<Heartknowledge> queryheartKonwList();
    //根据名称进行模糊查询
    List<Heartknowledge> queryHeartKnowledgeByName(String name);
    //根据id修动态修改信息
    int updateHeartKnowledgeById(Heartknowledge heartknowledge);
    //查询总条数的方法
    int selectCountHeartKnows();

}
